
/**
* @version 1.0.0
* @author skyfire
* @mail skyfireitdiy@hotmail.com
* @see http://github.com/skyfireitdiy/sflib
* @file sf_http_content_type.h

* sflib第一版本发布
* 版本号1.0.0
* 发布日期：2018-10-22
*/

#pragma once
#pragma clang diagnostic push
#pragma ide diagnostic ignored "cert-err58-cpp"

namespace skyfire {

/**
 * @brief  http Content-Type映射表
 */
inline std::unordered_map<std::string, std::string> sf_http_content_type {
    { "001", "application/x-001" },
    { "323", "text/h323" },
    { "907", "drawing/907" },
    { "acp", "audio/x-mei-aac" },
    { "aif", "audio/aiff" },
    { "aiff", "audio/aiff" },
    { "asa", "text/asa" },
    { "asp", "text/asp" },
    { "au", "audio/basic" },
    { "awf", "application/vndadobeworkflow" },
    { "bmp", "application/x-bmp" },
    { "c4t", "application/x-c4t" },
    { "cal", "application/x-cals" },
    { "cdf", "application/x-netcdf" },
    { "cel", "application/x-cel" },
    { "cg4", "application/x-g4" },
    { "cit", "application/x-cit" },
    { "cml", "text/xml" },
    { "cmx", "application/x-cmx" },
    { "crl", "application/pkix-crl" },
    { "csi", "application/x-csi" },
    { "cut", "application/x-cut" },
    { "dbm", "application/x-dbm" },
    { "dcd", "text/xml" },
    { "der", "application/x-x509-ca-cert" },
    { "dib", "application/x-dib" },
    { "doc", "application/msword" },
    { "drw", "application/x-drw" },
    { "dwf", "Model/vnddwf" },
    { "dwg", "application/x-dwg" },
    { "dxf", "application/x-dxf" },
    { "emf", "application/x-emf" },
    { "ent", "text/xml" },
    { "eps", "application/x-ps" },
    { "etd", "application/x-ebx" },
    { "fax", "image/fax" },
    { "fif", "application/fractals" },
    { "frm", "application/x-frm" },
    { "gbr", "application/x-gbr" },
    { "gif", "image/gif" },
    { "gp4", "application/x-gp4" },
    { "hmr", "application/x-hmr" },
    { "hpl", "application/x-hpl" },
    { "hrf", "application/x-hrf" },
    { "htc", "text/x-component" },
    { "html", "text/html" },
    { "htx", "text/html" },
    { "ico", "image/x-icon" },
    { "iff", "application/x-iff" },
    { "igs", "application/x-igs" },
    { "img", "application/x-img" },
    { "isp", "application/x-internet-signup" },
    { "java", "java/*" },
    { "jpe", "image/jpeg" },
    { "jpeg", "image/jpeg" },
    { "jpg", "application/x-jpg" },
    { "jsp", "text/html" },
    { "lar", "application/x-laplayer-reg" },
    { "lavs", "audio/x-liquid-secure" },
    { "lmsff", "audio/x-la-lms" },
    { "ltr", "application/x-ltr" },
    { "m2v", "video/x-mpeg" },
    { "m4e", "video/mpeg4" },
    { "man", "application/x-troff-man" },
    { "mdb", "application/msaccess" },
    { "mfp", "application/x-shockwave-flash" },
    { "mhtml", "message/rfc822" },
    { "mid", "audio/mid" },
    { "mil", "application/x-mil" },
    { "mnd", "audio/x-musicnet-download" },
    { "mocha", "application/x-javascript" },
    { "mp1", "audio/mp1" },
    { "mp2v", "video/mpeg" },
    { "mp4", "video/mpeg4" },
    { "mpd", "application/vndms-project" },
    { "mpeg", "video/mpg" },
    { "mpga", "audio/rn-mpeg" },
    { "mps", "video/x-mpeg" },
    { "mpv", "video/mpg" },
    { "mpw", "application/vndms-project" },
    { "mtx", "text/xml" },
    { "net", "image/pnetvue" },
    { "nws", "message/rfc822" },
    { "out", "application/x-out" },
    { "p12", "application/x-pkcs12" },
    { "p7c", "application/pkcs7-mime" },
    { "p7r", "application/x-pkcs7-certreqresp" },
    { "pc5", "application/x-pc5" },
    { "pcl", "application/x-pcl" },
    { "pdf", "application/pdf" },
    { "pdx", "application/vndadobepdx" },
    { "pgl", "application/x-pgl" },
    { "pko", "application/vndms-pkipko" },
    { "plg", "text/html" },
    { "plt", "application/x-plt" },
    { "png", "application/x-png" },
    { "ppa", "application/vndms-powerpoint" },
    { "pps", "application/vndms-powerpoint" },
    { "ppt", "application/x-ppt" },
    { "prf", "application/pics-rules" },
    { "prt", "application/x-prt" },
    { "ps", "application/postscript" },
    { "pwz", "application/vndms-powerpoint" },
    { "ra", "audio/vndrn-realaudio" },
    { "ras", "application/x-ras" },
    { "rdf", "text/xml" },
    { "red", "application/x-red" },
    { "rjs", "application/vndrn-realsystem-rjs" },
    { "rlc", "application/x-rlc" },
    { "rm", "application/vndrn-realmedia" },
    { "rmi", "audio/mid" },
    { "rmm", "audio/x-pn-realaudio" },
    { "rms", "application/vndrn-realmedia-secure" },
    { "rmx", "application/vndrn-realsystem-rmx" },
    { "rp", "image/vndrn-realpix" },
    { "rsml", "application/vndrn-rsml" },
    { "rtf", "application/msword" },
    { "rv", "video/vndrn-realvideo" },
    { "sat", "application/x-sat" },
    { "sdw", "application/x-sdw" },
    { "slb", "application/x-slb" },
    { "slk", "drawing/x-slk" },
    { "smil", "application/smil" },
    { "snd", "audio/basic" },
    { "sor", "text/plain" },
    { "spl", "application/futuresplash" },
    { "ssm", "application/streamingmedia" },
    { "stl", "application/vndms-pkistl" },
    { "sty", "application/x-sty" },
    { "swf", "application/x-shockwave-flash" },
    { "tg4", "application/x-tg4" },
    { "tif", "image/tiff" },
    { "tiff", "image/tiff" },
    { "top", "drawing/x-top" },
    { "tsd", "text/xml" },
    { "uin", "application/x-icq" },
    { "vcf", "text/x-vcard" },
    { "vdx", "application/vndvisio" },
    { "vpg", "application/x-vpeg005" },
    { "vsd", "application/x-vsd" },
    { "vst", "application/vndvisio" },
    { "vsw", "application/vndvisio" },
    { "vtx", "application/vndvisio" },
    { "wav", "audio/wav" },
    { "wb1", "application/x-wb1" },
    { "wb3", "application/x-wb3" },
    { "wiz", "application/msword" },
    { "wk4", "application/x-wk4" },
    { "wks", "application/x-wks" },
    { "wma", "audio/x-ms-wma" },
    { "wmf", "application/x-wmf" },
    { "wmv", "video/x-ms-wmv" },
    { "wmz", "application/x-ms-wmz" },
    { "wpd", "application/x-wpd" },
    { "wpl", "application/vndms-wpl" },
    { "wr1", "application/x-wr1" },
    { "wrk", "application/x-wrk" },
    { "ws2", "application/x-ws" },
    { "wsdl", "text/xml" },
    { "xdp", "application/vndadobexdp" },
    { "xfd", "application/vndadobexfd" },
    { "xhtml", "text/html" },
    { "xls", "application/x-xls" },
    { "xml", "text/xml" },
    { "xq", "text/xml" },
    { "xquery", "text/xml" },
    { "xsl", "text/xml" },
    { "xwd", "application/x-xwd" },
    { "sis", "application/vndsymbianinstall" },
    { "x_t", "application/x-x_t" },
    { "apk", "application/vndandroidpackage-archive" },
    { "301", "application/x-301" },
    { "906", "application/x-906" },
    { "a11", "application/x-a11" },
    { "ai", "application/postscript" },
    { "aifc", "audio/aiff" },
    { "anv", "application/x-anv" },
    { "asf", "video/x-ms-asf" },
    { "asx", "video/x-ms-asf" },
    { "avi", "video/avi" },
    { "biz", "text/xml" },
    { "bot", "application/x-bot" },
    { "c90", "application/x-c90" },
    { "cat", "application/vndms-pkiseccat" },
    { "cdr", "application/x-cdr" },
    { "cer", "application/x-x509-ca-cert" },
    { "cgm", "application/x-cgm" },
    { "class", "java/*" },
    { "cmp", "application/x-cmp" },
    { "cot", "application/x-cot" },
    { "crt", "application/x-x509-ca-cert" },
    { "css", "text/css" },
    { "dbf", "application/x-dbf" },
    { "dbx", "application/x-dbx" },
    { "dcx", "application/x-dcx" },
    { "dgn", "application/x-dgn" },
    { "dll", "application/x-msdownload" },
    { "dot", "application/msword" },
    { "dtd", "text/xml" },
    { "dwf", "application/x-dwf" },
    { "dxb", "application/x-dxb" },
    { "edn", "application/vndadobeedn" },
    { "eml", "message/rfc822" },
    { "epi", "application/x-epi" },
    { "eps", "application/postscript" },
    { "exe", "application/x-msdownload" },
    { "fdf", "application/vndfdf" },
    { "fo", "text/xml" },
    { "g4", "application/x-g4" },
    { "", "application/x-" },
    { "gl2", "application/x-gl2" },
    { "hgl", "application/x-hgl" },
    { "hpg", "application/x-hpgl" },
    { "hqx", "application/mac-binhex40" },
    { "hta", "application/hta" },
    { "htm", "text/html" },
    { "htt", "text/webviewhtml" },
    { "icb", "application/x-icb" },
    { "ico", "application/x-ico" },
    { "ig4", "application/x-g4" },
    { "iii", "application/x-iphone" },
    { "ins", "application/x-internet-signup" },
    { "IVF", "video/x-ivf" },
    { "jfif", "image/jpeg" },
    { "jpe", "application/x-jpe" },
    { "jpg", "image/jpeg" },
    { "js", "application/x-javascript" },
    { "la1", "audio/x-liquid-file" },
    { "latex", "application/x-latex" },
    { "lbm", "application/x-lbm" },
    { "ls", "application/x-javascript" },
    { "m1v", "video/x-mpeg" },
    { "m3u", "audio/mpegurl" },
    { "mac", "application/x-mac" },
    { "math", "text/xml" },
    { "md", "text/markdown" },
    { "mdb", "application/x-mdb" },
    { "mht", "message/rfc822" },
    { "mi", "application/x-mi" },
    { "midi", "audio/mid" },
    { "mml", "text/xml" },
    { "mns", "audio/x-musicnet-stream" },
    { "movie", "video/x-sgi-movie" },
    { "mp2", "audio/mp2" },
    { "mp3", "audio/mp3" },
    { "mpa", "video/x-mpg" },
    { "mpe", "video/x-mpeg" },
    { "mpg", "video/mpg" },
    { "mpp", "application/vndms-project" },
    { "mpt", "application/vndms-project" },
    { "mpv2", "video/mpeg" },
    { "mpx", "application/vndms-project" },
    { "mxp", "application/x-mmxp" },
    { "nrf", "application/x-nrf" },
    { "odc", "text/x-ms-odc" },
    { "p10", "application/pkcs10" },
    { "p7b", "application/x-pkcs7-certificates" },
    { "p7m", "application/pkcs7-mime" },
    { "p7s", "application/pkcs7-signature" },
    { "pci", "application/x-pci" },
    { "pcx", "application/x-pcx" },
    { "pdf", "application/pdf" },
    { "pfx", "application/x-pkcs12" },
    { "pic", "application/x-pic" },
    { "pl", "application/x-perl" },
    { "pls", "audio/scpls" },
    { "png", "image/png" },
    { "pot", "application/vndms-powerpoint" },
    { "ppm", "application/x-ppm" },
    { "ppt", "application/vndms-powerpoint" },
    { "pr", "application/x-pr" },
    { "prn", "application/x-prn" },
    { "ps", "application/x-ps" },
    { "ptn", "application/x-ptn" },
    { "r3t", "text/vndrn-realtext3d" },
    { "ram", "audio/x-pn-realaudio" },
    { "rat", "application/rat-file" },
    { "rec", "application/vndrn-recording" },
    { "rgb", "application/x-rgb" },
    { "rjt", "application/vndrn-realsystem-rjt" },
    { "rle", "application/x-rle" },
    { "rmf", "application/vndadobermf" },
    { "rmj", "application/vndrn-realsystem-rmj" },
    { "rmp", "application/vndrn-rn_music_package" },
    { "rmvb", "application/vndrn-realmedia-vbr" },
    { "rnx", "application/vndrn-realplayer" },
    { "rpm", "audio/x-pn-realaudio-plugin" },
    { "rt", "text/vndrn-realtext" },
    { "rtf", "application/x-rtf" },
    { "sam", "application/x-sam" },
    { "sdp", "application/sdp" },
    { "sit", "application/x-stuffit" },
    { "sld", "application/x-sld" },
    { "smi", "application/smil" },
    { "smk", "application/x-smk" },
    { "sol", "text/plain" },
    { "spc", "application/x-pkcs7-certificates" },
    { "spp", "text/xml" },
    { "sst", "application/vndms-pkicertstore" },
    { "stm", "text/html" },
    { "svg", "text/xml" },
    { "tdf", "application/x-tdf" },
    { "tga", "application/x-tga" },
    { "tif", "application/x-tif" },
    { "tld", "text/xml" },
    { "torrent", "application/x-bittorrent" },
    { "txt", "text/plain" },
    { "uls", "text/iuls" },
    { "vda", "application/x-vda" },
    { "vml", "text/xml" },
    { "vsd", "application/vndvisio" },
    { "vss", "application/vndvisio" },
    { "vst", "application/x-vst" },
    { "vsx", "application/vndvisio" },
    { "vxml", "text/xml" },
    { "wax", "audio/x-ms-wax" },
    { "wb2", "application/x-wb2" },
    { "wbmp", "image/vndwapwbmp" },
    { "wk3", "application/x-wk3" },
    { "wkq", "application/x-wkq" },
    { "wm", "video/x-ms-wm" },
    { "wmd", "application/x-ms-wmd" },
    { "wml", "text/vndwapwml" },
    { "wmx", "video/x-ms-wmx" },
    { "wp6", "application/x-wp6" },
    { "wpg", "application/x-wpg" },
    { "wq1", "application/x-wq1" },
    { "wri", "application/x-wri" },
    { "ws", "application/x-ws" },
    { "wsc", "text/scriptlet" },
    { "wvx", "video/x-ms-wvx" },
    { "xdr", "text/xml" },
    { "xfdf", "application/vndadobexfdf" },
    { "xls", "application/vndms-excel" },
    { "xlw", "application/x-xlw" },
    { "xpl", "audio/scpls" },
    { "xql", "text/xml" },
    { "xsd", "text/xml" },
    { "xslt", "text/xml" },
    { "x_b", "application/x-x_b" },
    { "sisx", "application/vndsymbianinstall" },
    { "ipa", "application/vndiphone" },
    { "xap", "application/x-silverlight-app" }
};
} // namespace skyfire
#pragma clang diagnostic pop